package start;

import qunar.tc.qmq.configuration.DynamicConfigLoader;
import qunar.tc.qmq.startup.ServerWrapper;

public class BrokerStartSlave {
    public static void main(String[] args) {
        ServerWrapper wrapper = new ServerWrapper(DynamicConfigLoader.load("broker2.properties"));
        Runtime.getRuntime().addShutdownHook(new Thread(() -> {
            wrapper.destroy();
        }));

        wrapper.start();
    }
}
